package com.shengyuan.manage_os.old.ying.erpm.controls;

import com.shengyuan.manage_os.old.ying.erpm.WorkSpace_TaiBanActivity_JX;
import com.shengyuan.manage_os.old.ying.erpm.data.Machinery;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

public class JieXieShiJian extends TextView {

	public static Machinery mMachinery;
	public JieXieShiJian(Context context) {
		super(context);

	}
	public JieXieShiJian(Context context, AttributeSet attrs) {
		super(context,attrs);
		try {
			String text="NO Time";
			if (!isInEditMode()) {
				if (WorkSpace_TaiBanActivity_JX.mMachinery!=null) {
					mMachinery = WorkSpace_TaiBanActivity_JX.mMachinery;
					text = WorkSpace_TaiBanActivity_JX.mMachinery.ElapsedTime;
				}
			}
			this.setText(text);
		} catch (Exception e) {
		}
	}
}
